﻿@ModelType SchoolClick.Models.ANIO_ESCOLAR
@Using Html.BeginForm("_create_anio_escolar", "AnioEScolar", Nothing, FormMethod.Post, New With {.id = "form-new-anio"})
    @Html.TableFieldsFor("#form-new-anio", String.Format("Dato del nuevo año escolar {0}", ViewBag.Year)
        ).AddFieldFor(Function(ae) ae.FECHA_INICIO, New JFOptionsFields().SetMaxLength(10).SetMarcaDeAgua("dd/mm/aaaa")
        ).AddFieldFor(Function(ae) ae.FECHA_FINAL, New JFOptionsFields().SetMaxLength(10).SetMarcaDeAgua("dd/mm/aaaa")
    ).SetTableWidth(650
    ).AddButtonDefault(New JFButton("btn-crear", String.Format("Crear el año escolar {0}", ViewBag.Year)).SetIcon("new-item-icon")
    ).AddJavaScript("$('#form-new-anio').on('saveSuccess', function () { $('#nuevo-year').empty().loadPartialView(); });")
End Using
